//
//  YWHttpTool.h
//  YWDaiGou
//
//  Created by Yeewii@hotmail.com on 16/6/13.
//  Copyright © 2016年 Yeewii@hotmail.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Constants.h"

typedef void(^YWRequestSuccsee)(NSDictionary *responseObject);
typedef void(^YWRequestFailure)(NSError *error);


@interface YWHttpTool : NSObject

+ (void)GET:(NSString *)url params:(NSDictionary *)params success:(YWRequestSuccsee)success failure:(YWRequestFailure)failure;

+ (void)POST:(NSString *)url params:(NSDictionary *)params success:(YWRequestSuccsee)success failure:(YWRequestFailure)failure;


@end
